package com.maingel.showcase.dao;

import com.maingel.showcase.entity.User;

import retrofit.http.GET;
import retrofit.http.Query;

public interface IUserService {
    @GET("/login")
    public User login(@Query("username") String username, @Query("password") String password);

    /*
        Spring mvc 后台代码：

        @RequestMapping(value = "/login", method = RequestMethod.GET)
        public @ResponseBody User login(@RequestParam String username, @RequestParam String password) {
            logger.info("Execute login!");

            User user = new User();
            user.setUsername(username);
            user.setGender("M");
            user.setAge("20");
            return user;
        }
    */
}
